<template>
  <view>App.vue</view>
</template>

<script>
  
export default {
  globalData: {
    foo: 'foo in app.vue'
  },
  methods: {
    appMethod() {
      console.log("app method");
    }
  },
  onLaunch: function () {
    console.log('App Launch')

    uni.$on("global-bus", (...args) => {
      console.log("App.vue 中监听全局事件", args);
    })

  },
  onShow: function () {
    console.log('111App Show')
  },
  onHide: function () {
    console.log('111App Hide')
  }
}
</script>

<style lang="scss">
/*每个页面公共css */
@import '@/uni_modules/uni-scss/index.scss';
/* #ifndef APP-NVUE */
@import '@/static/customicons.css';

// 设置整个项目的背景色
page {
  background-color: #f5f5f5;
}

/* #endif */
.example-info {
  font-size: 14px;
  color: #333;
  padding: 10px;
}

.zp-list-cell+.zp-list-cell {
  border-top: 1px solid red;
}

.bg-red {
  background-color: red;
}

.bg-blue {
  background-color: blue;
}

.bg-green {
  background-color: green;
}

.bg-yellow {
  background-color: yellow;
}

.bg-black {
  background-color: black;
}

.height-50 {
  height: 50px;
}

.uni-flex-item {
  display: flex;
  align-items: center;
  width: 100%;
}
</style>
